package com.wiscamp.ninechapters.problems.infrastructure.mappers.spider;

import com.wiscamp.ninechapters.problems.infrastructure.po.spider.ProblemAnswer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface ProblemAnswerMapper extends JpaRepository<ProblemAnswer, Long>, JpaSpecificationExecutor<ProblemAnswer> {

    ProblemAnswer findFirstByProblemTypeAndProblemYearAndProblemIndex(String problemType, int problemYear, int problemIndex);
}